package example.treemap;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student/* implements Comparable<Student>*/ {
    private String name;
    private int age;

//    @Override
//    public int compareTo(Student o) {
//        if (this.getAge() > o.getAge()) {
//            return 1;
//        } else if (this.getAge() == o.age) {
//            return 0;
//        } else {
//            return -1;
//        }
//    }
}
